package com.tocici.domain.bo;

import com.tocici.domain.User;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serializable;

/**
 * 用户业务对象 user
 *
 * @author zeratul
 * @date 2025-03-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = User.class, reverseConvertGenerate = false)
public class UserBo extends BaseEntity implements Serializable {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long userId;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String username;

    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 手机
     */
    @NotBlank(message = "手机不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 头像地址
     */
    private Long avatarUrl;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 性别;0-男、1-女
     */
    private Integer gender;

    /**
     * 简介
     */
    private String info;

    /**
     * 地域
     */
    private String area;

    /**
     *
     */
    private Long isDeleted;


}
